<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3d变换</title>
    <style>
        div {
            background-color: red;
            width: 200px;
            height: 200px;
            transition: all 1s;
        }

        .xz:hover {
            transform: rotatex(90deg)rotateY(90deg)rotateZ(90deg);
            transform: rotate3d(0.75, 0.75, 0.75, 120deg);
        }
        .zh:hover{
            transform: translate3D(50px,50px,50px);
        }
        .sf:hover{
            transform: scale3d(2,2,2);
        }
        p{
            text-align: center;
        }
    </style>
</head>

<body>
    <p>鼠标悬停到图形上可显示</p>
    <div class="xz">

    </div>
    <div class="zh">

    </div>
    <div class="sf">

    </div>
</body>

</html>